$(document).ready(function(){
	//input属性
	 $('input').placeholder();

	//选项卡
	$(".personal-container .pre-com-width .personal-left .personal-tab-nav .nav-list").on("click","li",function(){
		console.log($(this));
		$(this).addClass("per-active").siblings().removeClass("per-active");
	})

	$("#minem .minem-tab").on("click","li",function(){
		var index = $(this).index();
		$(this).addClass("tab-active").siblings().removeClass("tab-active");
		$("#minem .minem-tab-content .tab-content-item:eq("+index+")").show().siblings().hide();
	})

	//表格
	$(".mine-table table tr:even").css("background-color","#f7f8fd");


	//分页功能
	layui.use(['laypage','layer'], function(){
		var laypage = layui.laypage,
			layer = layui.layer;
		laypage.render({
			elem: 'have-page'
			,count: 100
			,skin: '#EB6106'
		});
		laypage.render({
			elem: 'his-page'
			,count: 100
			,skin: '#EB6106'
		});
		laypage.render({
			elem: 'recode-page'
			,count: 100
			,skin: '#EB6106'
		});
		laypage.render({
			elem: 'groom-page'
			,count: 100
			,skin: '#EB6106'
		});
	});

	//选择时间功能
	layui.use('laydate', function(){
  		var laydate = layui.laydate;
  
	  //执行一个laydate实例
	  laydate.render({
	    elem: '#start-time', //指定元素
	    theme: '#53acfe'
	  });
	   laydate.render({
	    elem: '#end-time', //指定元素
	     theme: '#53acfe'
	  });
});

});